import request from '@/utils/request'
import Vue from 'vue'

// 获取供应商列表
export const querySupplyList = data => {
    return request({
        url: Vue.prototype.$api.supply.index,
        method: 'post',
        data,
    })
}
// 获取供应商下拉列表
export const querySupplySpuList = data => {
    return request({
        url: Vue.prototype.$api.supply.spuList,
        method: 'post',
        data,
    })
}
// 获取供应商下拉列表
export const querySupplyListdown = data => {
    return request({
        url: Vue.prototype.$api.supply.supplyList,
        method: 'post',
        data,
    })
}

export const getDetail = data => {
    return request({
        url: Vue.prototype.$api.supply.detail,
        method: 'post',
        data,
    })
}
export const supplyEdit = data => {
    return request({
        url: Vue.prototype.$api.supply.edit,
        method: 'post',
        data,
    })
}
// /supply/Supply/getSupplyList
export const getSupplyList = data => {
    return request({
        url: Vue.prototype.$api.supply.getSupplyList,
        method: 'post',
        data,
    })
}
// /supply/Supply/getSupplyListInfo
export const getSupplyListInfo = data => {
    return request({
        url: Vue.prototype.$api.supply.getSupplyListInfo,
        method: 'post',
        data,
    })
}

export const addSupplyList = data => {
    return request({
        url: Vue.prototype.$api.supply.addSupplyList,
        method: 'post',
        data,
    })
}
export const deleteSupplyList = data => {
    return request({
        url: Vue.prototype.$api.supply.delete,
        method: 'post',
        data,
    })
}
export const querySupplySaleList = data => {
    return request({
        url: Vue.prototype.$api.supply.supplySale,
        method: 'post',
        data,
    })
}
export const querySupplySaleInfoList = data => {
    return request({
        url: Vue.prototype.$api.supply.supplySaleInfo,
        method: 'post',
        data,
    })
}
export const supListAdd = data => {
    return request({
        url: Vue.prototype.$api.supply.supListAdd,
        method: 'post',
        data,
    })
}
export const supListUpdate = data => {
    return request({
        url: Vue.prototype.$api.supply.supListUpdate,
        method: 'post',
        data,
    })
}
export const supListDelete = data => {
    return request({
        url: Vue.prototype.$api.supply.supListDelete,
        method: 'post',
        data,
    })
}

